package com.zxy.lm.service.impl;

import com.zxy.lm.entity.Announcement;
import com.zxy.lm.mapper.AnnouncementMapper;
import com.zxy.lm.service.AnnouncementService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jiusi
 * @since 2021-06-23
 */
@Service
public class AnnouncementServiceImpl extends ServiceImpl<AnnouncementMapper, Announcement> implements AnnouncementService {

    @Autowired
    private AnnouncementMapper announcementMapper;

    @Override
    public List<Announcement> getAllAnnouncement() {
        return announcementMapper.selectList(null);
    }
}
